package com.tj.collection.controller.admin.response;


import com.fqgj.common.api.ResponseData;
import com.tj.collection.db.enums.SDZZProductAuthIdEnum;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: nengfei (mr.vencnet@gmail.com)
 * Date: 2016/11/22
 * Time: 下午1:25
 */
public class SdzzProductListResponse implements ResponseData {
    private List<Item> list = new ArrayList<>();

    public SdzzProductListResponse() {
        for (SDZZProductAuthIdEnum idEnum : SDZZProductAuthIdEnum.values()) {
            Item item = new Item()
                    .setId(idEnum.getId())
                    .setName(idEnum.getName());
            list.add(item);
        }
    }


    private class Item {
        //类目代码
        private Integer Id;

        //类目名称
        private String name;

        public Integer getId() {
            return Id;
        }

        public Item setId(Integer id) {
            Id = id;
            return this;
        }

        public String getName() {
            return name;
        }

        public Item setName(String name) {
            this.name = name;
            return this;
        }
    }
}
